home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / gametime.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-11  |  302 b   |  25 lines

  1.  
  2. #ifndef _GAMETIME_H_
  3. #define _GAMETIME_H_
  4.  
  5. #include "time.h"
  6.  
  7. class GameTime
  8. {
  9.  
  10. public:
  11.  
  12.     GameTime();
  13.  
  14.     void start ();
  15.     void end   ();
  16.  
  17.     static double dt;
  18.  
  19. private:
  20.     time_t       m_startTime;
  21.     time_t       m_endTime;
  22.     double       m_elapsedTime;
  23. };
  24.  
  25. #endif